<template>
    <div class="xtx-tabs-panel" v-show="name===activeName">
        <slot></slot>
    </div>
</template>
<script>
import { inject } from 'vue'
export default {
name:'XtxTabsPannel',
props:{
    //label选项卡文字，name选项卡唯一标识 $slot.default()默认插槽内容
    label:{
        type:String,
        default:"",
    },
    name:{
        type:[String,Number],
        default:'',
}
},
setup(){
    const activeName=inject('activeName')
    console.log(activeName);
    return {activeName}
}

}
</script>

<style scoped lang="less">

</style>